package com.cpfmat.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.cpfmat.entity.Article;
import com.cpfmat.vo.CustomArticle;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author zhangbin
 * @since 2018-07-30
 */
public interface ArticleMapper extends BaseMapper<Article> {
	int customUpdate(Article article);

	long countList(Map<String, Object> param);
	
	List<CustomArticle> getList(Map<String, Object> param);

	List<CustomArticle> getRecommendList(Map<String, Object> param);
	
	long countAllList(Map<String, Object> param);

	List<CustomArticle> getAllList(Map<String, Object> param);

	CustomArticle queryArticleWithAttachments(@Param("articleId") String articleId);
	
	List<CustomArticle> getManagePage(Page<CustomArticle> page,@Param("param") Map<String, Object> param);
}
